<template>
  <div class="app">
    姓名：<input type="text" v-model="username">
  </div>
</template>

<script>
export default {
    data() {
        return {
            username :''
        }
    },
    methods: {
        getUsername() {
            return this.username
        }
    }
}
</script>

<style>

</style>